<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.db.conn"%>
<%@ page import="java.sql.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
<jsp:include flush="true" page="${basePath}/admin/head.jsp"></jsp:include>
<link rel="stylesheet" href="<%=path %>/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="<%=path %>/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="<%=path %>/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="<%=path %>/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="<%=path %>/kindeditor/plugins/code/prettify.js"></script>
<script>
    KindEditor.ready(function(K) {
        var editor1 = K.create('textarea[name="Textarea1"]', {
            cssPath : '<%=path %>/kindeditor/plugins/code/prettify.css',
            uploadJson : '<%=path %>/kindeditor/jsp/upload_json.jsp',
            fileManagerJson : '<%=path %>/kindeditor/jsp/file_manager_json.jsp',
            allowFileManager : true,
            afterCreate : function() {
                var self = this;
                K.ctrl(document, 13, function() {
                    self.sync();
                    document.forms['example'].submit();
                });
                K.ctrl(self.edit.doc, 13, function() {
                    self.sync();
                    document.forms['example'].submit();
                });
            }
        });
        prettyPrint();
    });
</script>




 </head>

 
 <body>

 <div class="card">
        <ul class="nav nav-tabs page-tabs">
            <li class="active"><a><%=request.getParameter("id").equals("1")?"关于我们":"联系我们"%></a></li>
        </ul>
        <div class="tab-content" style="min-height: 450px;">

		<form  action="<%=path %>/abouts_Edit" method="post">
            <table style="width: 100%;" >
                   <% 			conn cn=new conn();
    
     			String id = request.getParameter("id");
				String sql = "select * from abouts where id=" + id ;
				ResultSet rs = cn.query(sql);
				rs.next();
			%>
<tr>
<td  style=" text-align:right; width:20%;"><font style='color:red'>*&nbsp;</font>内容:</td>
<td class="tbright"><div style="display:inline;float:left;">
<textarea id="Textarea1"  name="Textarea1"  cols="100" rows="8" style="width:700px;height:400px;visibility:hidden;"><%= rs.getString("amemo") %></textarea></div>
 </td></tr>



                <tr>
                    <td>&nbsp;</td>
                    <td align="left">
					    <input name="id" type="hidden" id="id" value='<%= request.getParameter("id") %>'> 
                         <input type="submit" name="btnAdd" value="保 存"   id="btnAdd"     class="btn btn-primary" />

                    </td>
                </tr>
            </table>
				<%
                                 if (rs != null)
                                        rs.close();
                                  if (cn != null)
                                        	cn.close();
                          	%>
		 </form>
         

        </div>
    </div>


</body>
</html>


